#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define N 50

int main()
{
	char str1[N], str2[N];
	int i, j;

	printf("Please enter str1:\n");
	gets(str1);
	printf("Please enter str2:\n");
	gets(str2);

	i = strlen(str1);
	for (j = 0; str2[j] != '\0'; i++, j++)
	{
		str1[i] = str2[j];
	}
	str1[i] = '\0';

	printf("the catenated string is %s", str1);

	return 0;
}